<template>
      <div v-show="skeleton">
<van-skeleton title :row="13" />
    </div>
  <div v-show="!skeleton">
支付
    </div>
        <van-submit-bar :price="99900" button-text="提交订单" @submit="onSubmit">
<van-icon name="balance-list-o" badge="99+" size="3rem" />

</van-submit-bar>
</template>

<script setup>
import { ref } from 'vue';
const skeleton=ref(true)
setTimeout(() => {
    skeleton.value=false
}, 1000)
import { useRoute,useRouter } from 'vue-router';
const route=useRoute()
const router=useRouter()
const onSubmit=()=>{
router.push('/home/zfjg')
}
import { useCounterStore } from '@/stores/piniaCart'
// 在组件内部的任何地方均可以访问变量 `store` ✨
const store = useCounterStore()
console.log(store.piniaCart);

</script>

<style lang="scss" scoped>

</style>